var request=require('request');

var opts={
    url:'http://localhost:3000/abc',
    method:'PUT',
    headers:{
        'x-My-Header':'My custom header'
    }
};

request(opts, function (err, res, body) {
    if(err)throw err;
    console.log('\n\nPUT:\n',JSON.stringify({
        err:err,
        res:res,
        body:JSON.parse(body)
    },null,2));

});